
<?php
/*
	require("class/Client.php");
	require 'class/ArrayList.php';
	include("class/Session.php");
	include 'class/Markers.php';
	include 'phpsqlajax_dbinfo.php';
	
	session_start();
	
	$client = $_SESSION['Client'];
	echo "Id: ".$client->id;
	echo "<br>nome: ".$client->name;
	echo "<br>email: ".$client->email;
	echo "<br>password: ".$client->password;
	echo "<br>type: ".$client->type;
	
	$markers = new Markers();
	$arrayList = new ArrayList();
	$arrayList = $markers->serch($client->id);
	
	//while($marker = $arrayList->next()){
		$nome = "Rcardo Tavares A. de Oliveira";//$marker->getName();
		echo "<br>-> ".mb_strlen($nome);//mb_substr($nome, " ");
		//$nome = substr_replace($nome, "", 1);//substr_replace(" ", "", $nome);
		
		echo "<br><br>Nome: ".$nome;
	//}
?>
*/
?>
<?php
$string = "Ricardo Tavares Antunes de Oliviera";//testando";

// Coloque sem valor
//$pegar = substr($string, 1);

// Ou colocque o valor do comrpimeto
//$pegar = substr($string, 1, strlen($string));

// Ou tbm vc pode remover a barra
//$pegat = str_replace("/", "", $string);

$pegar = explode(" ", $string);

echo $pegar[0];
?>
